﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using log4net;

namespace CSharpExt.Time.Scheduler
{
    public abstract class Task
    {
        #region Private Data

        private XmlElement _config;

        #endregion

        #region Properties

        public XmlElement Configuration
        {
            get { return _config; }
            set { _config = value; }
        }

        #endregion

        #region Interface

        public virtual void Execute(ScheduleContext context)
        {

        }

        #endregion
    }

    public class LogTask : Task
    {
        public override void Execute(ScheduleContext context)
        {
            LogManager.GetLogger(typeof(LogTask)).Info("Executed Task");
        }
    }

}
